import base from '@/api/base.js';
import http from '@/request/http.js';


const Salary = {
    listUserSalary(body) {
        return http.post(`${base.context}/salary/listUserSalary`, body);
    },
    listUserNoSalary(body) {
        return http.post(`${base.context}/salary/listUserNoSalary`, body);
    },
    getSalaryDetail(body) {
        return http.post(`${base.context}/salary/salaryDetail`, body);
    },
    calculateSalary(body) {
        return http.post(`${base.context}/salary/calculateSalary`, body);
    },
    calculateHouseFunds(body) {
        return http.post(`${base.context}/salary/calculateHouseFunds`, body);
    },
    calculateInsurance(body) {
        return http.post(`${base.context}/salary/calculateInsurance`, body);
    },
    updateSalary(body) {
        return http.post(`${base.context}/salary/updateSalary`, body);
    },
    addSalary(body) {
        return http.post(`${base.context}/salary/addSalary`, body);
    },

    makeSalary(body) {
        return http.post(`${base.context}/salary/makeSalary`, body);
    },

    recheckSalary(body) {
        return http.post(`${base.context}/salary/recheckSalary`, body);
    },

}

export default Salary;